import fs from "fs";
import process from "process";


const writestream = fs.createWriteStream(process.cwd() + '/src/0020_文件/data.txt', { encoding: 'utf-8', flags: 'r+' })
    .on('close', () => {
        console.log('文件关闭了');

    })

writestream.write('acv~~')
writestream.end()